package com.base.taskreports.task.service.impl;

import com.base.taskreports.common.annotation.TBatchLog;
import com.base.taskreports.reports.entiyt.master.TIndicatorsEntity;
import com.base.taskreports.reports.entiyt.pqd.TblDiscountTransEnyity;
import com.base.taskreports.reports.service.TblCouponOperaFlowService;
import com.base.taskreports.reports.service.TblDiscountTransService;
import com.base.taskreports.reports.service.impl.TIndicatorsServiceImpl;
import com.base.taskreports.task.service.PqdService;
import com.base.taskreports.task.service.PqlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service("PqlService")
public class PqlServiceImpl implements PqlService {

	@Autowired
	private TIndicatorsServiceImpl tIndicatorsServiceImpl ;

	@Autowired
	private TblCouponOperaFlowService tblCouponOperaFlowService ;

	@TBatchLog("PQL_M001")
	public void getPQL_M001(String strDate) {
		List<TIndicatorsEntity> list = tblCouponOperaFlowService.getPQL_M001(strDate) ;
		tIndicatorsServiceImpl.saveIndicators("PQL_M001",strDate,list) ;
	}

	@TBatchLog("PQL_M002")
	public void getPQL_M002(String strDate) {
		List<TIndicatorsEntity> list = tblCouponOperaFlowService.getPQL_M002(strDate) ;
		tIndicatorsServiceImpl.saveIndicators("PQL_M002",strDate,list) ;
	}

}
